<template>
    <el-dialog
            title="提示"
            :visible.sync="visible"
            width="790px"
    >
        <iframe src="/material/imagepicker" frameborder="0" style="width: 750px; height: 460px;"></iframe>
    </el-dialog>
</template>

<script>
    export default {
        name: "ImagePicker",
        props:{
            visible:{
                type:Boolean,
                default:false
            }
        },
        mounted() {
            var $this = this;
            window.onPickedImage = function (data) {
                $this.visible = false;
                $this.$emit('picked', data);
            }
        }
    }
</script>

<style scoped>

</style>
